package com.pap.product.discount.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.product.discount.auto.entity.ProductDiscount;;

public interface ProductDiscountMapper extends PapBaseMapper<ProductDiscount> {
	int deleteByPrimaryKey(String id);

	int selectCountByMap(Map<Object, Object> map);

	List<ProductDiscount> selectListByMap(Map<Object, Object> map);

	ProductDiscount selectByPrimaryKeyAndTableName(@Param("id") String id,
			@Param("dynamicTableName") String dynamicTableName);

	int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int insert(ProductDiscount record);

	int insertSelective(ProductDiscount record);

	ProductDiscount selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(ProductDiscount record);

	int updateByPrimaryKey(ProductDiscount record);
}